package com.one.friend.controller.user;


import com.one.common.core.domain.QueryDataDTO;
import com.one.common.core.domain.TableDataInfo;
import com.one.friend.domain.message.dto.MessageDTO;
import com.one.friend.service.user.IUserMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/message")
public class UserMessageController {

    @Autowired
    private IUserMessageService iUserMessageService;

    @GetMapping("/list")
    public TableDataInfo list(QueryDataDTO queryDataDTO){
        return iUserMessageService.list(queryDataDTO);
    }
}
